projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fef179b
)
tests: Don't drop chdir()'s return value on the floor
author
Emmanuele Bassi
<ebassi@gnome.org>
Mon, 3 Jan 2022 14:07:25 +0000
(14:07 +0000)
committer
Emmanuele Bassi
<ebassi@gnome.org>
Sat, 8 Jan 2022 15:17:25 +0000
(15:17 +0000)
Avoid a compile time warning, and ensure that the test suite is actually
doing its job.
testsuite/reftests/gtk-reftest.c
patch
|
blob
|
history
diff --git
a/testsuite/reftests/gtk-reftest.c
b/testsuite/reftests/gtk-reftest.c
index 3872f554dc9033892a09ae8fd481c87fcf0829df..1dd1a080f210800842f719dd7aafb8554c482071 100644
(file)
--- a/
testsuite/reftests/gtk-reftest.c
+++ b/
testsuite/reftests/gtk-reftest.c
@@
-552,7
+552,7
@@
main (int argc, char **argv)
* is the same as the reftest data, because we're using the
* "file" property of GtkImage as a relative path in builder files.
*/
-
chdir (basedir
);
+
g_assert (chdir (basedir) == 0
);
g_log_set_writer_func (log_writer, NULL, NULL);